import java.util.Scanner;

public class Main {
    public static String solve(int[] arr, int n){
        for (int i = 0; i < arr.length; i++) {
            for (int j = i+1; j < arr.length; j++) {
                if(arr[i]+arr[j]==n){
                    return i+" "+j;
                }
                else{
                    return null;
                }
            }
        }
        return "";
    }
    public static void main(String[] args) {
        int[] arr={2,7,11,5,4,8,9};
        Scanner sc = new Scanner(System.in);
        int n=sc.nextInt();
        String ret=solve(arr,n);
        System.out.println(n+"这个数由的下标为（"+ret+"）组成");
    }
}
